package hong.jun.web;

import hong.jun.FeignClient.OrderFeignClient;
import hong.jun.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderTestcontroller {
    @Autowired
    private OrderFeignClient orderFeignClient;//托底方法接口

    @GetMapping(value = "/order/{id}")
    public User touser (@PathVariable("id")long id){
        return orderFeignClient.touser(id);//
    }
}
